package com.chd.driversystem.domain;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Index;
import org.greenrobot.greendao.annotation.NotNull;

/**
 * Created by shawnfly on 17-5-2.
 */
@Entity(indexes = {@Index(value = "id ASC",unique = true)})
public class Team {
    @Id(autoincrement = true)
    private Long id;
    @NotNull
    private Long user_id;
    private String name;
    private String code;
    private Long leader_id;
    private String remark;
    @Generated(hash = 851797834)
    public Team(Long id, @NotNull Long user_id, String name, String code,
            Long leader_id, String remark) {
        this.id = id;
        this.user_id = user_id;
        this.name = name;
        this.code = code;
        this.leader_id = leader_id;
        this.remark = remark;
    }
    @Generated(hash = 882286361)
    public Team() {
    }
    public Long getId() {
        return this.id;
    }
    public void setId(Long id) {
        this.id = id;
    }
    public String getName() {
        return this.name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public String getCode() {
        return this.code;
    }
    public void setCode(String code) {
        this.code = code;
    }
    public Long getLeader_id() {
        return this.leader_id;
    }
    public void setLeader_id(Long leader_id) {
        this.leader_id = leader_id;
    }
    public String getRemark() {
        return this.remark;
    }
    public void setRemark(String remark) {
        this.remark = remark;
    }
    public Long getUser_id() {
        return this.user_id;
    }
    public void setUser_id(Long user_id) {
        this.user_id = user_id;
    }

}
